package sg.edu.nus.dashboard.main.control
{
	
	import com.adobe.cairngorm.control.FrontController;
	
	import sg.edu.nus.dashboard.advisor.control.AdvisorController;
	import sg.edu.nus.dashboard.baseline.control.BaselineController;
	import sg.edu.nus.dashboard.main.control.command.GetConnectCommand;
	import sg.edu.nus.dashboard.main.control.event.GetConnectEvent;
	import sg.edu.nus.dashboard.sql.control.SQLController;
	import sg.edu.nus.dashboard.stat.control.StatController;
	
	public class AppController extends FrontController
	{
		public var stat:StatController = new StatController();
		public var advisor:AdvisorController = new AdvisorController();
		public var baseline:BaselineController = new BaselineController();
		public var sql:SQLController = new SQLController();
		
		public function AppController()
		{
			initialCommands();
		}
		
		private function initialCommands():void {
			addCommand(GetConnectEvent.EVENT_NAME, GetConnectCommand);
		}
	}
}